package cn.tedu.boot35.mapper;

import cn.tedu.boot35.entity.User;
import org.apache.ibatis.annotations.*;

@Mapper
public interface UserMapper {

    @Insert("insert into user values(null,#{username},#{password},#{nick})")
    void insert(User user);

    @Select("select *from user where username=#{username}")
    User select(String username);


    @Update("update user set password=#{password} where username=#{username}")
    void updatePassword(String username,String password);

}
